# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Gordian Edenhofer <gordian.edenhofer[at]yahoo[dot]de>

pkgname=python-fastpbkdf2
pkgver=0.2
pkgrel=10
pkgdesc="A faster implementation of PBKDF2"
arch=('loong64' 'x86_64')
license=('Apache')
url="https://github.com/Ayrx/python-fastpbkdf2"
depends=('python-cffi' 'python-six')
makedepends=('python-setuptools' 'git')
checkdepends=('python-pytest-runner') 
source=("git+https://github.com/Ayrx/python-fastpbkdf2.git#tag=v$pkgver")
md5sums=('SKIP')

build() {
  cd "$srcdir"/python-fastpbkdf2
  python setup.py build
}

check() {
  cd "$srcdir"/python-fastpbkdf2
  python setup.py pytest
}

package() {
  cd python-fastpbkdf2
  python setup.py install --root="$pkgdir/" --optimize=1
}
